import Vue from 'vue'
import App from './App.vue'
import router from './router'
import http from './utils/request.js'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 加载全局样式
import './styles/index.less'

Vue.use(ElementUI)

Vue.prototype.$http = http

// 设置事件总线
Vue.prototype.$eventBus = new Vue()

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
